package com.innovation.sys.common.vo;

import java.io.Serializable;
import java.util.Map;

@SuppressWarnings("serial")
public class BaseException extends RuntimeException implements Serializable{

	private int status;
	private String message;
	private Map<String, Object> data;

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public BaseException() {
	}

	public BaseException(String message) {
		this.message = message;
	}

	public BaseException(int status, String message) {
		this.status = status;
		this.message = message;
	}

	public BaseException(Map<String, Object> data) {
		this.data = data;
	}

	public BaseException(int status, String message, Map<String, Object> data) {
		this.status = status;
		this.message = message;
		this.data = data;
	}

	@Override
	public String toString() {
		return "{\"status\":\"" + status + "\",\"message\":\"" + message + "\",\"data\":\"" + data + "\"}";
	}

}
